package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Praise;
import cn.wolfcode.trip.base.query.PraiseQueryObject;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PraiseMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Praise record);

    Praise selectByPrimaryKey(Long id);

    List<Praise> selectAll(PraiseQueryObject qo);

    int updateByPrimaryKey(Praise record);

    Praise selectByPraise(Praise entity);

    void updateState(PraiseQueryObject qo);

    Integer getPraiseNum(@Param("typeId") Long typeId, @Param("type") Integer type);

    void updatePraise(Praise entity);
}